import axios from 'axios'
let list = () => axios.get('/role/list');
let update = (id, data) => axios.put(`/role/${id}`, data);
let remove = (id) => axios.delete(`/role/${id}`);
let add = (data) => axios.post('/role', data);
export default {
    list, update, remove, add
}